--[[----------------------------------------------------------------------------
	Copyright 2008 João Liborio Cardoso
	All rights reserved
	
	Combuctor Scrap is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License version 3 as published by the Free Software Foundation.
	Combuctor Scrap is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License (<http://www.gnu.org/licenses/>) for more details.
---------------------------------------------------------------------------]]--

local CombuctorSets = Combuctor:GetModule('Sets')
local texture = ScrapCoinTexture:GetTexture()

CombuctorSets:Register('垃圾', texture, function(player, bagType, name)
	return Scrap:IsJunk(name)
end)

Scrap:HookScript('OnReceiveDrag', function(self,...)
	for _,frame in pairs(Combuctor.frames) do
		frame.itemFrame:Regenerate()
	end
end)